/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.controller.comment;

import com.entities.EventComment;
import com.model.EventCommentModel;
import java.util.List;
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;

/**
 *
 * @author Tuan Long
 */
@Named(value = "commentManager")
@RequestScoped
public class CommentManager {
    
    public CommentManager() {
    }
    
    private List<EventComment> readEventComments;

    public List<EventComment> getReadEventComments() {
        EventCommentModel model = new EventCommentModel();   
        readEventComments = model.readEventComments();
        return readEventComments;
    }
    
}
